          
          
         
            //var originalWidth = consultWidth = window.innerWidth;
            //var linkJumpCount = 16;
            var linkHref;
            var beginningDelay = null;
            var watchBrowse = null;
            var watchNav = null;
            function countDown(){
                    linkJumpCount -= 1;
                
                    //linkJumpCount=0时，跳转页面
                    if(linkJumpCount <= 0){
                        location.href = linkHref;
                    }

                    //每秒执行一次,showTime()
                    setTimeout("countDown()",100);
            }
            //禁止滚动
            function bodyScroll(event) {
                　event.preventDefault();
            }
            //内容高度是否小于屏幕高度
            function checkContnHeight(){
                if($('.container')[0].offsetHeight < window.innerHeight){
                    $('.container').addClass('fillAll');
                }
            }
            //判断是否为移动设备
            function browserRedirect(){
                var sUserAgent = navigator.userAgent.toLowerCase();
                var bIsIpad = sUserAgent.match(/ipad/i) == "ipad";
                var bIsIphoneOs = sUserAgent.match(/iphone os/i) == "iphone os";
                var bIsMidp = sUserAgent.match(/midp/i) == "midp";
                var bIsUc7 = sUserAgent.match(/rv:1.2.3.4/i) == "rv:1.2.3.4";
                var bIsUc = sUserAgent.match(/ucweb/i) == "ucweb";
                var bIsAndroid = sUserAgent.match(/android/i) == "android";
                var bIsCE = sUserAgent.match(/windows ce/i) == "windows ce";
                var bIsWM = sUserAgent.match(/windows mobile/i) == "windows mobile";
                if (bIsIpad || bIsIphoneOs || bIsMidp || bIsUc7 || bIsUc || bIsAndroid || bIsCE || bIsWM) {
                    $('body').addClass('mobileDevice');
                    return true;
                }else{
                    return false;
                }
            }
            //first ele add class
            function fstAddClass(){
                for(var c = 0;c < $('.addFst').length;c++){
                    $('.addFst:eq(' + c + ')>*:first-child').addClass('active');
                }
            }
            
            $(document).ready(function(){
                    browserRedirect(); 
                    fstAddClass();
                    setTimeout(checkContnHeight,10);
                    var nowHref = window.location.href;
                    if(nowHref.indexOf('cateInfo') >= 0){
                        $('header nav.pc .menu li:eq(0)>a').addClass('active');
                    }
                    for(var a = 0;a < $('header nav.pc .menu a').length;a++){
                        var href = $('header nav.pc .menu a')[a].getAttribute('href').split('.')[0];
                        if(nowHref.indexOf(href) >= 0){
                            $('header nav.pc .menu a:eq(' + a + ')').addClass('current');
                        }
                    }
                    watchNav = setInterval(function(){
                        
                        var scrollTop = document.documentElement.scrollTop || document.body.scrollTop;
                        if(scrollTop == 0 && $('header nav.pc')[0].className.indexOf('up') >= 0){
                            $('header nav.pc').removeClass('up');
                        }else if(scrollTop != 0 && $('header nav.pc')[0].className.indexOf('up') < 0){
                            $('header nav.pc').addClass('up');
                        }
                    },10)

                    $('header nav.pc .menu li').mouseenter(function(){
                        if($(this).find('.sonMenu').length){
                            var left = $(this)[0].getBoundingClientRect().left;
                            $('header nav.pc .menu .triangle')[0].style.left = left + 'px';
                            var h = $('header nav.pc .menu .sonMenu .contn')[0].offsetHeight;
                            $('header nav.pc .menu .sonMenu').height(h);
                            $('header nav.pc .menu .sonMenu').addClass('show');
                        }
                    })
                    $('header nav.pc .menu li').mouseleave(function(){
                        $('header nav.pc .menu .sonMenu').height(0);
                        $('header nav.pc .menu .sonMenu').removeClass('show');
                    })
                    $('header nav.mobile .head .menuBtn').click(function(){
                        if($('header nav.mobile')[0].className.indexOf('clicked') >= 0){
                            $('header nav.mobile').removeClass('clicked');
                            var scrollTop = Math.abs(parseFloat($('body')[0].style.top));
                            $('body').removeClass('noScroll');
                            $('body')[0].style.top = '';
                            document.documentElement.scrollTop = document.body.scrollTop = scrollTop;
                        }else{
                            $('header nav.mobile').addClass('clicked');
                            var scrollTop = document.documentElement.scrollTop || document.body.scrollTop;
                            $('body').addClass('noScroll');
                            $('body')[0].style.top = '-' + scrollTop + 'px';
                        }
                    })
                    $('header nav.mobile .box .mid ul li>a').click(function(){
                        if($(this).siblings('.sonMenu').length){
                            if($('header nav.mobile .box .sonMenu')[0].offsetHeight){
                                $('header nav.mobile .box .sonMenu').height(0);
                            }else{
                                var h = $('header nav.mobile .box .sonMenu .contn')[0].offsetHeight;
                                $('header nav.mobile .box .sonMenu').height(h);
                            }
                            return false;
                        }
                        
                    })

                    var linkNow = window.location.href;
                    for(var n = 0;n < $('header nav.pc .menu li>a').length;n++){
                        var href = $('header nav.pc .menu li>a').eq(n).attr('href');
                        if(linkNow.indexOf(href) >= 0){
                            $('header nav.pc .menu li>a').eq(n).addClass('active');
                            break;
                        }
                    }
                    
                    /*$('a').click(function(e){
                        
                            linkHref = $(this).attr('href');
                            e = e || window.event;
                            e.cancelBubble = true;
                            e.stopPropagation();
                            if(e.preventDefault){ // w3c
                                e.preventDefault();
                            } else { // ie
                                e.returnValue = false;
                            }
                            countDown();
                            $('.leaving').addClass('jump');
                            $('.container').addClass('jump');
                    })*/
                    
            })

            

        